package com.aozhi.aipower.operation.controller.req;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.IEntity;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import com.aozhi.aipower.operation.base.group.Insert;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * BannerEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@Data
@Accessors(
    chain = true
)
@EqualsAndHashCode(
    callSuper = false
)
public class BannerReqForm {

  /**
   * 图片链接
   */
  @URL(message = "图片链接不能为空", groups = {Insert.class})
  private String imageUrl;

  /**
   * 轮播图名称
   */
  @NotBlank(message = "轮播图名称不能为空", groups = {Insert.class})
  private String name;

  /**
   * 是否显示 1：true，0：false
   */
  private Boolean show;

  /**
   * 排序（升序）
   */
  private Integer sort;

  /**
   * 跳转链接
   */
  @URL(message = "图片链接不能为空", groups = {Insert.class})
  private String url;

}
